home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 63.zip
/
BS1 part 63
/
PD-soft 2.adf
/
Demmer_Doc
< prev
next >
Wrap
Text File
|
1993-04-24
|
7KB
|
188 lines
DEMMER
(c) COPYRIGHT 1992 Bill McCarter All Rights Reserved
Legal:
This program is CRIPPLEWARE. Copy it and distribute it to your
friends, as long as you include all the files that are in the
archive file DEMMER.lha. I will not allow anyone to make a
profit from this program, except a modest charge for copying and
media, such as the Fred Fish collection.
The program is fully operational except this public version
will not load compressed DEM files, so it will not edit VISTA
files that you already have. In addition the annoy screen has
been added just to remind you that you should be happy to reward
me for the work that I have done on this.
If you do register you'll receive a fully working version
without the annoy screen and includes the ability to load
compressed DEM files. You also will be on the list for any of the
other software titles that we have on the go or that have been
produced already. Included is an utility that drastically saves
time and effort when making your own maps. Another is CONQUEST
AND DOMINION a new strategy game. GAMMA DEMO an educational
program and GASLAWS another educational program.
PURPOSE:
The purpose of this utility is to be able to take an IFF
graphic and transform it to a format readable by VISTAPRO. I
wanted to have a freeform method to produce landscapes and to
have an easy way to digitize topo maps rather than relying on
someone else to supply me with USGS data. VISTAPRO provides an
excellent engine for the development of realistic landscape
images.
There are also a few extra features that I added to provide
some image processing to smooth out transitions.
HOW IT WORKS:
Any IFF graphic of any resolution may be used, in any
screensize as long as you have the chip ram. Even Brushes may be
used. Other numbers of colours than 64 work but I don't recommend
to use them. 64 colour halfbright ILBM's produce the best results
and HAM doesn't work. If you are serious about graphics then
you owe it to yourself to get a program like Pixmate or ADPro
anyway to do any format conversions.
The image is automatically scaled to a 258 X 258 array and
then converted. The elevations are taken from the colours
themselves, with palette 0 being the minimum elevation and
palette 63 being the maximum. This provides 64 steps in elevation
for the image which should be enough for most applications. If
not, there are a few processing functions that I have provided to
smooth out the transitions.
I did supply a colourmap palette in the output file so when
you use the landscape file in Vistapro you will have a palette.
OPERATION:
The program starts with a requester screen with gadgets for
all the available commmands.
IMPORTANT:
Before you load your ILBM enter the MAX ELEVATION, MIN
ELEVATION, and SCALE values in their boxes so that the image will
be scaled properly when it is loaded.
GADGETS:
NAME:
Click in tis box to acitvate it and then enter the name of
your file. The default name is ILBMPIC.
COMMENT:
Click in this box to enter any comments you want saved with
the file.
MAXIMUM ELEVATION:
Enter the maximum elevation encountered in your map, this is
in meters and will not be accepted for values over 16000.
MINIMUM ELEVATION:
Enter the minimum elevation, this is in meters and will not
be accepted below 0.
SCALE:
This is the measure of the side of your ILBM in meters. If
your picture represents an area 10 KM X 10 KM then enter 10000
into scale.
SETTINGS:
NONE:
This is the fastest processing and results in discrete
steps.
LINEAR:
This takes a very long time and smooths out the
transitions the most. The more complex the picture the faster it
works as it searches the IFF for changes in elevation and does a
linear interpolation. It works faster now as I use integer math.
I'm working on another algorithm to make a smoother result and
this will be included in the registered version.
3X3
This looks at a 3 by 3 matrix and inserts the average
value into the center. The slider adjusts the center weight so
you can vary the effect the surrounding pixels have. A value of 0
has the most smoothing effect and 85 the least.
5X5
This looks at a 5 by 5 matrix and inserts the average
value into the center. The slider adjusts the center weight so
you can vary the effect the surrounding pixels have. A value of 0
has the most smoothing effect and 85 the least.
RENDER:
Once you are happy with the settings selecting RENDER will
start the image processing.
LOAD IFF:
This command will present you with a standard AMOS file
requestor. To get a device list click on the right button. Then
find your ILBM and double click on it or enter the name in the
bottom of the requestor.
LOAD DEM:
This will load any previously saved compressed DEM. I have
not included this ability in this version.
SAVE DEM:
This presents you with a requestor so you can pick the output
name for your DEM. The file is then converted and the suffix
.scape is added if it is not already there.
QUIT4:
This quits the program.
MANUAL EDIT:
This opens up a whole new screen where you can adjust the DEM
pixel by pixel. This new screen is a super bitmap and may be
scrolled around in by moving the mouse to where you want to go.
EXIT:
This will return you to the operations screen.
The left side of the screen has a column of all the screen
colours in order from 0 at the bottom to 63 at the top.
On the right side is a zoom box to show the colours under the
pointer. If you click on a spot on the map the values within the
yellow square on the zoom box are presented. Click on these
boxes to change the individual elevation values. You have to
press return for the value to be accepted.
MULTITASKING:
This program multitasks well. To toggle to and from workbench
press Left Amiga-A. To kill the program at any time type
Control-C.
If you like this or if you would like anything else in the
programming line in C, assembly or AMOS or have an interest in
mining and mineral processing or design engineering, including
digital design please drop me a line to:
GYRUS SOFTWARE GROUP
Bill McCarter
P.O. Box 250
LILLOOET, BRITISH COLUMBIA,
CANADA,
V0K 1V0
or COMPU$ERVE 72570,3622.
VISTAPRO (C) is a COPYRIGHT of Virtual Reality Laboratories,Inc
Pixmate (c) is a COPYRIGHT of Progressive Peripherals Inc AMOS
(c) is a Copyright of Mandarin Jawx and is a fantastic way to
access the power of the Amiga.